package com.study.java.jinjie.jihe.lianxi.liu;

public class Student {
    private long num;
    private  String name;
    private int chengJi;

    public Student(long num, String name, int chengJi) {
        this.num = num;
        this.name = name;
        if (30<chengJi&&chengJi<90 ) {
            this.chengJi = chengJi;
        }else {
            this.chengJi=-1;
            System.out.println("无效成绩!");
        }

    }

    public long getNum() {
        return num;
    }

    public void setNum(long num) {
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getChengJi() {
        return chengJi;
    }

    public void setChengJi(int chengJi) {
        this.chengJi = chengJi;
    }
}
